<?php
/*
	首页
*/

defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$this->model('task')->orderup();
	$return=$this->model('page/index')->getmain($return);
	$page=cfc('core')->get_page_keywords('jy_weishop','index',true);
	if($_SESSION['os']=='windows'){
		set_html('title',$page['title']?:$return['sharedata']['title']);
		set_html('description',$page['description']?:$return['sharedata']['desc']);
	}else{
		set_html('title',$return['shopset']['title']?:'首页-在线商城');
	}
	$return['storeid']=$_SESSION['store_id'];
	set_html('keywords',$page['keywords']?:$return['setting']['share_keywords']);
	exi($return);
}
function style($id)
{
	switch ($id%7) {	
		case 0: return "style-brown";
		case 1: return 'style-red';
		case 2: return "style-pink";
		case 3: return "style-orange";
		case 4: return "style-green";
		case 5: return "style-blue";
		case 6: return "style-purple";
		case 7: return "style-brown";
		default: }
}
	
?>